import request from '@/utils/request'

export function getDicts(data) {
    return request({
        url: 'sys/dict/list',
        method: 'post',
        data
    })
}

export function addSysDicts(data) {
    return request({
        url: 'sys/dict/add',
        method: 'post',
        data
    })
}

export function editSysDicts(data) {
    return request({
        url: 'sys/dict/edit',
        method: 'post',
        data
    })
}

export function editdetial(data) {
    return request({
        url: 'sys/dict/editdetial',
        method: 'post',
        data
    })
}

export function searchDict(data) {
    return request({
        url: 'sys/dict/search',
        method: 'post',
        data
    })
}

export function getDict(data) {
    return request({
        url: 'sys/dict/search',
        method: 'get',
        params: data
    })
}
